<?php
namespace Home\Controller;


class TestrpcController extends HomeController{
    
    public function index(){
        vendor('Hprose.HproseHttpClient');
        $client = new \HproseHttpClient('http://localhost:46130/index.php/Home/Test');
        // 或者采用
        //$client = new \HproseHttpClient();
        //$client->useService('http://serverName/index.php/Home/Server');
        $result = $client->index();
        echo $result;
    }
}